package com.liu.model;

import java.util.Comparator;

@SuppressWarnings("rawtypes")
public class PwdComparator implements Comparator {

	public int compare(Object arg0, Object arg1) {
		Pwd user0 = (Pwd) arg0;
		Pwd user1 = (Pwd) arg1;
		if (user0.getXh() == user1.getXh()) {
			return 0;
		} else if (user0.getXh() > user1.getXh()) {
			return 1;
		}else{
			return -1;
		}
	}

}